<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head">
    <meta charset="UTF-8">
    <title>Title</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 3 | User Profile</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../static/plugins/datatables-responsive/css/responsive.bootstrap4.min.css"
    th:href="@{/plugins/datatables-responsive/css/responsive.bootstrap4.min.css}">


    <link rel="stylesheet" href="../../static/plugins/fontawesome-free/css/all.min.css"
          th:href="@{/plugins/fontawesome-free/css/all.min.css}">

    <link rel="stylesheet" href="../../static/plugins/editor.md/css/editormd.min.css"
          th:href="@{/plugins/editor.md/css/editormd.min.css}">

    <link rel="stylesheet" href="../../static/plugins/selectize/css/selectize.default.css"
          th:href="@{/plugins/selectize/css/selectize.default.css}">

    <!-- Select2 -->
    <link rel="stylesheet" href="../../static/plugins/select2/css/select2.min.css"
          th:href="@{/plugins/select2/css/select2.min.css}">
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" href="../../static/plugins/icheck-bootstrap/icheck-bootstrap.min.css"
          th:href="@{/plugins/icheck-bootstrap/icheck-bootstrap.min.css}">

    <!-- SweetAlert2 -->
    <link rel="stylesheet" href="../../static/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css"
          th:href="@{/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css}">

    <!-- Theme style -->
    <link rel="stylesheet" href="../../static/css/adminlte.min.css" th:href="@{/css/adminlte.min.css}">

    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">

</head>
<body>

<div th:fragment="js">

    <script src="../../static/js/taginput.init.js" th:src="@{/js/taginput.init.js}"></script>

    <script src="../../static/plugins/jquery/jquery.min.js" th:src="@{/plugins/jquery/jquery.min.js}"></script>
    <!-- Bootstrap 4 -->
    <script src="../../static/plugins/bootstrap/js/bootstrap.bundle.min.js"
            th:src="@{/plugins/bootstrap/js/bootstrap.bundle.min.js}"></script>
    <!-- AdminLTE App -->
    <script src="../../static/js/adminlte.min.js" th:src="@{/js/adminlte.min.js}"></script>

    <!-- SweetAlert2 -->
    <script src="../../static/plugins/sweetalert2/sweetalert2.min.js"
            th:src="@{/plugins/sweetalert2/sweetalert2.min.js}"></script>

    <script src="../../static/plugins/editor.md/js/editormd.min.js"
            th:src="@{/plugins/editor.md/js/editormd.min.js}"></script>

    <!-- Select2 -->
    <script src="../../static/plugins/select2/js/select2.full.min.js"
            th:src="@{/plugins/select2/js/select2.full.min.js}"></script>

    <script src="../../static/plugins/selectize/js/standalone/selectize.min.js"
            th:src="@{/plugins/selectize/js/standalone/selectize.min.js}"></script>

<!--    <script src="../../static/js/edit.js" th:src="@{/js/edit.js}"></script>-->
    <script src="../../static/js/categoryinput.init.js" th:src="@{/js/categoryinput.init.js}"></script>
    <script src="../../static/js/taginput.init.js" th:src="@{/js/taginput.init.js}"></script>
    <script src="../../static/js/configuration.js" th:src="@{/js/configuration.js}"></script>
</div>
<div th:fragment="Navbar">
    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <!-- Left navbar links -->
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fa fa-bars"></i></a>
            </li>
        </ul>

        <!-- Right navbar links  右上角 -->
        <ul class="navbar-nav ml-auto">
            <!-- Messages Dropdown Menu -->
            <li class="nav-item dropdown">
                <a th:href="@{/toindex}" class="nav-link" href="../index.html">
                    <i class="fa fa-paper-plane"></i>
                    <span>博客前台首页</span>
                </a>
            </li>
        </ul>
    </nav>
    <!-- /.navbar -->
</div>
<div th:fragment="MainSidebarContainer(n)">
    <!-- Main Sidebar Container  左上角-->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <h1>
            <a href="../index.html" th:href="@{/admin/toindex}" class="brand-link">
                <img src="../../static/upload/touxiang.png" th:src="@{'/upload01/'+${session.user.avatar}}"
                     class="brand-image img-circle elevation-3">
                <span class="brand-text font-weight-light" th:text="${session.user.nickname}"></span>
<!--                <span th:text="${session.user.avatar}"></span>-->
            </a>
        </h1>

        <!-- Sidebar 左边 的侧边栏 -->
        <div class="sidebar">
            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <!-- Add icons to the links using the .nav-icon class
                         with font-awesome or any other icon font library -->
                    <li class="nav-header">仪表盘</li>
                    <li class="nav-item">
                        <a href="dashboard.html" th:href="@{/admin/toindex}" th:classappend="${n==1}?active"
                           class="nav-link ">
                            <i class="nav-icon fas fa-tachometer-alt"></i>
                            <p>仪表盘</p>
                        </a>
                    </li>
                    <li class="nav-header">博客编辑</li>
                    <li class="nav-item">
                        <a href="edit.html" th:href="@{/admin/toaddblog}" th:classappend="${n==2}?active" class="nav-link">
                            <i class="nav-icon fas fa-edit"></i>
                            <p>发布博客</p>
                        </a>
                    </li>
                    <li class="nav-header">管理模块</li>
                    <li class="nav-item">
                        <a href="blog-mgr.html" th:href="@{/admin/toblog}" th:classappend="${n==3}?active" class="nav-link">
                            <i class="fa fa-list-alt nav-icon" aria-hidden="true"></i>
                            <p>博客管理</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="category-mgr.html" th:href="@{/admin/totypepage}" th:classappend="${n==4}?active"
                           class="nav-link">
                            <i class="fa fa-bookmark nav-icon" aria-hidden="true"></i>
                            <p>分类管理</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="tag-mgr.html" th:href="@{/admin/totagpage}" th:classappend="${n==5}?active"
                           class="nav-link">
                            <i class="fa fa-tags nav-icon" aria-hidden="true"></i>
                            <p>标签管理</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="comment-mgr.html" th:href="@{/admin/tocomment}" th:classappend="${n==6}?active" class="nav-link">
                            <i class="fa fa-comments nav-icon" aria-hidden="true"></i>
                            <p>评论管理</p>
                        </a>
                    </li>  <li class="nav-item">
                        <a href="comment-mgr.html" th:href="@{/admin/tojournal}" th:classappend="${n==7}?active" class="nav-link">
                            <i class="fa fa-comments nav-icon" aria-hidden="true"></i>
                            <p>日志管理</p>
                        </a>
                    </li>
                    <li class="nav-header">系统管理</li>
                    <li class="nav-item">
                        <a href="configuration.html" th:href="@{/admin/toconfig}"
                           class="nav-link" th:classappend="${n==8}?active">
                            <i class="fa fa-wrench nav-icon"></i>
                            <p>系统配置</p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="../index.html" th:href="@{/admin/logout}" class="nav-link">
                            <i class="fa fa-sign-out-alt nav-icon"></i>
                            <p>安全退出</p>
                        </a>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>
</div>

<div th:fragment="foot">
    <!-- /.content-wrapper 最下面 -->
    <footer class="main-footer">
        <p class="text-center mb-1" th:text="${session.user1.siteDescription}">
            Copyright © 2020 ZengZK Designed by ZengZK Powered by AdminLTE
        </p>
        <p class="text-center" th:text="${session.user1.icp}">
            <a href="">粤ICP备20040058号</a>
        </p>
    </footer>
</div>
</body>
</html>